<template>
  <section class="vipcard-open">
    <p class="open">
      <span>开通会员</span>
    </p>
    <p class="price">
      <span class="left">
        <i>1个月</i>
        <i>¥20</i>
      </span>
      <span class="right" @click="handleSkipPayment">购买</span>
    </p>
    <p class="exchange">
      <span class="left">兑换卡号</span>
      <span class="right" @click="handleSkipUseCart"
        >使用卡号卡密
        <i class="arrow"></i>
      </span>
    </p>
    <p class="record">
      <span class="left">购买记录</span>
      <span class="right" @click="handleSkipInvoiceRecord"
        >开发票
        <i class="arrow"></i>
      </span>
    </p>
  </section>
</template>

<script>
export default {
  methods: {
    handleSkipPayment() {
      this.$router.push("/confirmOrder/payment");
    },
    handleSkipUseCart() {
      this.$router.push("/vipcard/useCart");
    },
    handleSkipInvoiceRecord() {
      this.$router.push("/vipcard/invoiceRecord");
    },
  },
};
</script>
<style lang="less" scoped>
@import url('assets/css/mixin');
.vipcard-open {
  color: #333333;
  p {
    .set-flex();
    padding: 15px 20px;
    background-color: #fff;
  }
  .open {
    padding: 0;
    span {
      display: inline-block;
      width: 100%;
      padding: 15px 0;
      margin: 0 20px;
      border-bottom: 1px solid #f5f5f5;
    }
  }
  .price {
    .left {
      & i:nth-child(2) {
        margin-left: 10px;
        font-weight: 700;
        color: #ff6600;
      }
    }
    .right {
      padding: 5px 15px;
      border: 1px solid #ff6600;
      border-radius: 3px;
      font-size: 13px;
      color: #ff6600;
    }
  }
  .exchange,
  .record {
    .right {
      color: #999999;
      i {
        position: relative;
        top: -2px;
        display: inline-block;
        width: 8px;
        height: 8px;
        border-top: 2px solid #d5d5d5;
        border-right: 2px solid #d5d5d5;
        transform: rotate(45deg);
      }
    }
  }
  .exchange {
    margin: 10px 0;
  }
}
</style>